package br.unisul.prolinear.view;

import java.io.IOException;
import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import br.unisul.prolinear.controller.LoginController;

@ManagedBean
@ViewScoped
public class LoginBean implements Serializable {
	LoginController loginController;
	
	public LoginBean() {
		loginController = new LoginController();
	}

	private static final long serialVersionUID = 1L;

	public String doLogin() throws IOException{
		return loginController.doLogin();
	}

	public String doLogout() throws IOException{
		return loginController.doLogout();
	}
}